﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using TCKQKL.Service.DataContract;
using TCKQKL.Service.Contract;
using TCKQKL.Service.Implementation;

namespace TCKQKL.Service.Host
{
    class Program
    {
        private static ServiceHost myServiceHost = null;
        static void Main(string[] args)
        {
            try
            {
                myServiceHost = new ServiceHost(typeof(LookupService));
                myServiceHost.Open();
                Console.WriteLine("Service host started.");
                Console.ReadLine();
                if (myServiceHost != null)
                    myServiceHost.Close();

            }
            catch (System.Exception e)
            {
                Console.WriteLine(e.Message);
                Console.ReadLine();
            }
        }
    }
}
